﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shuba.Model;

namespace Shuba.Business
{//
    public class AlternateUM
    {
        Shuba.Data.AlternateUM dl;

        public AlternateUM()
        {
            dl = new Shuba.Data.AlternateUM();
        }

        public List<AlternateUMInfo> GetList(string value)
        {
            return dl.GetList(value);
        }

        public AlternateUMInfo Get(string BRANCH_ID, string NIP)
        {
            return dl.Get(BRANCH_ID, NIP);
        }

        public AlternateUMInfo GetUnionTmp(string BRANCH_ID, string NIP)
        {
            return dl.GetUnionTmp(BRANCH_ID, NIP);
        }
        


        public AlternateUMInfo Get(string BRANCH_ID, string NIP, string ALTERNATE_FOR, DateTime EFF_FROM, DateTime EFF_TO)
        {
            return dl.Get(BRANCH_ID, NIP, ALTERNATE_FOR, EFF_FROM, EFF_TO);
        }

        public AlternateUMInfo GetExistingAlternateUM(string BRANCH_ID, string NIP)
        {
            return dl.GetExistingAlternateUM(BRANCH_ID, NIP);
        }

        public AlternateUMInfo GetAlternateUMNotActive(string BRANCH_ID, string NIP)
        {
            return dl.GetAlternateUMNotActive(BRANCH_ID, NIP);
        }

        public AlternateUMInfo GetAlternateUMNotExists(string BRANCH_ID, string NIP)
        {
            return dl.GetAlternateUMNotExists(BRANCH_ID, NIP);
        }

        public List<AlternateUMInfo> GetAlternateUMNew(string BRANCH_ID, string NIP)
        {
            return dl.GetAlternateUMNew(BRANCH_ID, NIP);
        }
     

        public AlternateUMInfo GetTmp(string BRANCH_ID, string NIP)
        {
            return dl.GetUnionTmp(BRANCH_ID, NIP);
        }

        public List<AlternateUMInfo> GetAlternateUM(string BRANCH_ID)
        {
            return dl.GetAlternateUM(BRANCH_ID);
        }

        public AlternateUMInfo GetApprovalByID(string BRANCH_ID, string NIP)
        {
            return dl.GetApprovalByID(BRANCH_ID, NIP);
        }

        public List<AlternateUMInfo> GetListApproval(string UpdateBy)
        {
            return dl.GetListApproval(UpdateBy);
        }

        public void Save(AlternateUMInfo AlternateUMInfo)
        {
            dl.Save(AlternateUMInfo);
        }

        public int Approve(string BRANCH_ID, string NIP, string ALTERNATE_FOR, DateTime EFF_DATE_FROM, DateTime EFF_DATE_TO, string ActType)
        {
            return dl.Approve(BRANCH_ID, NIP, ALTERNATE_FOR, EFF_DATE_FROM, EFF_DATE_TO, ActType);
        }

        /*
        public int Approve(string BRANCH_ID, string NIP, string ActType)
        {
            return dl.Approve(BRANCH_ID, NIP, ActType);
        }
         */

        public int Reject(string BRANCH_ID, string NIP, string ALTERNATE_FOR, DateTime EFF_DATE_FROM, DateTime EFF_DATE_TO)
        {
            return dl.Reject(BRANCH_ID, NIP, ALTERNATE_FOR, EFF_DATE_FROM, EFF_DATE_TO);
        }

        /*
        public int Reject(string BRANCH_ID, string NIP)
        {
            return dl.Reject(BRANCH_ID, NIP);
        }
         */

        public bool CheckMapping(string BRANCH_ID, string NIP)
        {
            return dl.CheckMapping(BRANCH_ID, NIP);
        }
    }
}
